package main

import "fmt"

func twoSum(nums []int, target int)  []int {

	l:=len(nums)
	for x:=0;x<l;x++ {
		for y := x + 1; y < l; y++ {
			if nums[x]+nums[y] == target {
				tmp := []int{x, y}
				return tmp
			}
		}
	}
	return []int{}
}


func twoSumT(nums []int,target int) []int {
	m:=make(map[int]int)
	for x:=0;x<=len(nums);x++ {
		m[nums[x]] = x
	}
	

}

func main() {
	checkNums := []int{1,3,5,7,9}
	 s:=twoSum(checkNums ,8)
	 fmt.Println(s)
}